import request from '@/config/axios'

export interface MatchmakerStringingVO {
  id: number
  no: string
  matchmakerId: number
  matchmakerName: string
  matchmakerPhone: string
  manId: number
  womanId: number
  activeId: number
  stringingStatus: boolean
}

// 查询相亲红娘牵线记录列表
export const getMatchmakerStringingPage = async (params) => {
  return await request.get({ url: `/maker/matchmaker-stringing/page`, params })
}

// 查询相亲红娘牵线记录详情
export const getMatchmakerStringing = async (id: number) => {
  return await request.get({ url: `/maker/matchmaker-stringing/get?id=` + id })
}

// 新增相亲红娘牵线记录
export const createMatchmakerStringing = async (data: MatchmakerStringingVO) => {
  return await request.post({ url: `/maker/matchmaker-stringing/create`, data })
}

// 修改相亲红娘牵线记录
export const updateMatchmakerStringing = async (data: MatchmakerStringingVO) => {
  return await request.put({ url: `/maker/matchmaker-stringing/update`, data })
}

// 删除相亲红娘牵线记录
export const deleteMatchmakerStringing = async (id: number) => {
  return await request.delete({ url: `/maker/matchmaker-stringing/delete?id=` + id })
}

// 导出相亲红娘牵线记录 Excel
export const exportMatchmakerStringing = async (params) => {
  return await request.download({ url: `/maker/matchmaker-stringing/export-excel`, params })
}
